package com.kylin.module.shop.forms;

import java.util.Date;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;

public class CompanyForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
    private Long[] mainbusiness;
    
    /** 主营类别 */
    private Long[] maincatproduct;
	private Long userid;
    private String username;
    private String name;
    private String country;
    private String companyIntro;
    private String address;
    private String email;
    private String postcode;
    private String phoneCountry;
    private String phoneArea;
    private String phone;
    private String faxCountry;
    private String faxArea;
    private String fax;
    private String contact;
    private String language;
    private String[] otherLanguages;
    private String createdby;
    private Date createdon;
    private String lastupdatedby;
    private Date lastupdatedon;
    private Short active;
    private Integer ordering;
    private Integer hits;
    
    private FormFile logo;
    private FormFile adImg;
	
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getCreatedby() {
		return createdby;
	}
	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}
	public Date getCreatedon() {
		return createdon;
	}
	public void setCreatedon(Date createdon) {
		this.createdon = createdon;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getFaxArea() {
		return faxArea;
	}
	public void setFaxArea(String faxArea) {
		this.faxArea = faxArea;
	}
	public String getFaxCountry() {
		return faxCountry;
	}
	public void setFaxCountry(String faxCountry) {
		this.faxCountry = faxCountry;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public String getLastupdatedby() {
		return lastupdatedby;
	}
	public void setLastupdatedby(String lastupdatedby) {
		this.lastupdatedby = lastupdatedby;
	}
	public Date getLastupdatedon() {
		return lastupdatedon;
	}
	public void setLastupdatedon(Date lastupdatedon) {
		this.lastupdatedon = lastupdatedon;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPhoneArea() {
		return phoneArea;
	}
	public void setPhoneArea(String phoneArea) {
		this.phoneArea = phoneArea;
	}
	public String getPhoneCountry() {
		return phoneCountry;
	}
	public void setPhoneCountry(String phoneCountry) {
		this.phoneCountry = phoneCountry;
	}
	public String getPostcode() {
		return postcode;
	}
	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}
	public Short getActive() {
		return active;
	}
	public void setActive(Short active) {
		this.active = active;
	}
	public String getCompanyIntro() {
		return companyIntro;
	}
	public void setCompanyIntro(String companyIntro) {
		this.companyIntro = companyIntro;
	}
	public Integer getHits() {
		return hits;
	}
	public void setHits(Integer hits) {
		this.hits = hits;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long[] getMainbusiness() {
		return mainbusiness;
	}
	public void setMainbusiness(Long[] mainbusiness) {
		this.mainbusiness = mainbusiness;
	}
	public Long[] getMaincatproduct() {
		return maincatproduct;
	}
	public void setMaincatproduct(Long[] maincatproduct) {
		this.maincatproduct = maincatproduct;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getOrdering() {
		return ordering;
	}
	public void setOrdering(Integer ordering) {
		this.ordering = ordering;
	}
	public Long getUserid() {
		return userid;
	}
	public void setUserid(Long userid) {
		this.userid = userid;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String[] getOtherLanguages() {
		return otherLanguages;
	}
	public void setOtherLanguages(String[] otherLanguages) {
		this.otherLanguages = otherLanguages;
	}
	public String toString(){
		StringBuffer sb = new StringBuffer();
	sb.append("\n id                  ="+id              );
	if(mainbusiness != null)
		sb.append("\n mainbusiness        ="+mainbusiness.length    );
	if(maincatproduct != null)
		sb.append("\n maincatproduct      ="+maincatproduct.length  );
	sb.append("\n userid              ="+userid          );
	sb.append("\n username            ="+username        );
	sb.append("\n name                ="+name            );
	sb.append("\n Country             ="+country         );
	sb.append("\n companyIntro        ="+companyIntro    );
	sb.append("\n address             ="+address         );
	sb.append("\n email               ="+email           );
	sb.append("\n postcode            ="+postcode        );
	sb.append("\n phoneCountry        ="+phoneCountry    );
	sb.append("\n phoneArea           ="+phoneArea       );
	sb.append("\n phone               ="+phone           );
	sb.append("\n faxCountry          ="+faxCountry      );
	sb.append("\n faxArea             ="+faxArea         );
	sb.append("\n fax                 ="+fax             );
	sb.append("\n contact             ="+contact         );
	sb.append("\n language            ="+language        );
	if(otherLanguages != null)
		sb.append("\n otherLanguages.size ="+otherLanguages.length  );
	sb.append("\n createdby           ="+createdby       );
	sb.append("\n createdon           ="+createdon       );
	sb.append("\n lastupdatedby       ="+lastupdatedby   );
	sb.append("\n lastupdatedon       ="+lastupdatedon   );
	sb.append("\n active              ="+active          );
	sb.append("\n ordering            ="+ordering        );
	sb.append("\n hits                ="+hits            );
	return sb.toString();
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public FormFile getAdImg() {
		return adImg;
	}
	public void setAdImg(FormFile adImg) {
		this.adImg = adImg;
	}
	public FormFile getLogo() {
		return logo;
	}
	public void setLogo(FormFile logo) {
		this.logo = logo;
	}
}